<%@page import="java.awt.event.ItemEvent"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>售后</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"><!-- 导入bootstrap -->
<script src="https://code.jquery.com/jquery.js"></script><!-- 导入JQuery方便使用ajax插件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script><!-- 导入bootstrap核心js文件 -->
</head>
<body>
<div class="container-fluid">
<div class="row">
<c:forEach var="item" items="${sales}">
  <div class="col-sm-6 col-md-4">
    <div class="thumbnail">
      <img src="${item.image}" width="150px" heigh="242px" alt="...">
      <div class="caption">
        <h3>用户ID：${item.user_id}</h3>
        <span>商品ID:${item.good_id}</span>
        <p>${item.content}</p>
        <span>${item.date}</span>
        <a href="/ProfessionalDesign/dealAF?as_state=1&as_id=${item.as_id }" class="btn btn-success" role="button">同意</a> 
        <a href="/ProfessionalDesign/dealAF?as_state=0&as_id=${item.as_id }" class="btn btn-danger" role="button">拒绝</a>
        <c:set var="state" scope="session" value="${item.as_state}"/>
        <c:if test="${state >0}">
   		<button type="button" class="btn btn-primary" disabled="disabled">已处理</button>
		</c:if>
		<c:if test="${state ==0}">
   		<button type="button" class="btn btn-default" disabled="disabled">未处理</button>
		</c:if>
        </p>
      </div>
    </div>
  </div>
</c:forEach>
  
</div>
</div>
</html>